﻿using System;
using System.Collections.Generic;
using System.Linq;

using Microsoft.Xna.Framework.Input;

namespace WorldOnFire
{
    class CMenuOptionsVideo : ABCMenu
    {
        private enum eOptions
        {
            BRIGHTNESS,
            EXIT,
            COUNT
        };

        public override void Initialize()
        {
            // Initialize the options
            m_nOptionCount = (int)eOptions.COUNT;
            m_strOptionTitles = new string[(int)eOptions.COUNT] 
            {
                "Brightness",
                "Exit"
            };

            base.Initialize();
        }

        public override void Input(float _fDeltaTime)
        {
            // TODO: FUCKING INPUT. JESUS CHRIST.
            if (SInputManager.IsKeyPressed(Keys.Enter) == true)
            {
                switch (m_nSelectedIndex)
                {
                    case (int)eOptions.BRIGHTNESS:
                        {
                            m_bSelectionActive = !m_bSelectionActive;
                        }
                        break;
                    case (int)eOptions.EXIT:
                        {
                            s_StateManager.Pop();
                        }
                        break;
                }
            }


            // TODO: HANDLE UP/DOWN INPUT

            base.Input(_fDeltaTime);
        }
    }
}
